package com.thejupitech;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class BooksWrapper {
	View base;
	TextView isbn = null;
	ImageView bookIcon = null;
	TextView bookTitle = null;	
	TextView author = null;
	
	public BooksWrapper(View base) {
		this.base=base;
	}

	public TextView getIsbn() {
		if(isbn==null)
			isbn=(TextView)base.findViewById(R.id.item_isbn);
		return isbn;
	}

	public ImageView getBookIcon() {
		if(bookIcon==null)
			bookIcon = (ImageView)base.findViewById(R.id.item_books_icon);
		return bookIcon;
	}

	public TextView getBookTitle() {
		if(bookTitle==null)
			bookTitle=(TextView)base.findViewById(R.id.item_title);
		return bookTitle;
	}

	public TextView getAuthor() {
		if(author==null)
			author = (TextView)base.findViewById(R.id.item_author);
		return author;
	}
	
	
}
